<layout name="Layout/layout" />
<div class="row">
	<div class="col-lg-12">
		<h1 class="page-header">考试项目</h1>
	</div>
	<!-- /.col-lg-12 -->
</div>
<!-- /.row -->
<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-default">
			<div class="panel-heading">
				修改
			</div>
			<!-- /.panel-heading -->
			<div class="panel-body">
				<div class="dataTable_wrapper">
					<table class="table table-striped table-bordered table-hover" id="dataTables-example">
						<thead>
							<tr>
								<th>ID</th>
								<th>名称</th>
								<th>考点</th>
								<th>专业</th>
								<th>说明</th>
								<th>是否开启</th>
								<th>修改</th>
								<th>删除</th>
							</tr>
						</thead>
						<tbody>
							<?php 
								foreach($prolist as $k=>$v){
									$trclass = '';
									if($k%2==0){
										$trclass = 'odd';
									}else{
										$trclass = 'even';
									}
									?>
									<tr class="{$trclass}">
										<td>{$v['id']}</td>
										<td>{$v['name']}</td>
										<td>{$v['examcenter']}</td>
										<td>{$v['major']}</td>
										<td>{$v['title']}</td>
										<td>{$v['isopen']}</td>
										<td><a href="{:U("Admin/Project/updateProject",array("pro_id"=>$v['id']))}">修改</a></td>
										<td><a href="{:U("Admin/User/deleteProject",array("pro_id"=>$v['id']))}" id="delete_link" onclick="delete_confirm()">删除</a></td>
									</tr>
									<?php 
								}
							?>
						</tbody>
				</table>
			</div>

			</div>

			<!-- /.panel-body -->
		</div>
		<!-- /.panel -->
	</div>
	<!-- /.col-lg-12 -->
</div>
